package com.webservice;

import java.util.Map;

import android.os.AsyncTask;
import android.util.Log;

public class WebServiceTask extends AsyncTask<Object, Object, String> {

	IWebServiceTask handler;
	Map<String, String> map;
	String response;

	public WebServiceTask(IWebServiceTask p_handler,
			Map<String, String> params) {
		handler = p_handler;
		map = params;
	}

	@Override
	protected String doInBackground(Object... params) {

		WebService webService = new WebService(
				"http://www.flickr.com/services/rest/");

		Log.d(" ==WEBGET== ", "");
		response = webService.webGet("", map);
		return response;
	}

	protected void onProgressUpdate(Object... progress) {
	}

	protected void onPostExecute(String result) {
	}

}
